﻿<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" EnableEventValidation="false"
    ValidateRequest="false" AutoEventWireup="true" CodeFile="SupplyAdd.aspx.cs" Inherits="Member_Trade_SupplyAdd"
    Title="发布供应信息" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="server">

    <script language="javascript" src="../../js/Industry.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../js/calendar.js"></script>

    <script type="text/javascript" language="javascript">
     function  textValue(){
          var   c=document.all('ctl00_ContInfo_dropUnit');  
          var danwei=c.options[c.selectedIndex].value;
          ctl00_ContInfo_danwei.innerHTML="元/"+danwei;
          ctl00_ContInfo_gonghuo.innerHTML=danwei;
          ctl00_ContInfo_zuixiaoqi.innerHTML=danwei;
            
      }   
    </script>

    <div id="sub_content">  
        <form id="form1" action="">
            <asp:HiddenField ID="txtSortB" runat="server"></asp:HiddenField>
            <asp:HiddenField ID="txtSortM" runat="server"></asp:HiddenField>
            <asp:HiddenField ID="txtSortS" runat="server"></asp:HiddenField>
            <div class="pagetitle" id="DIV1" runat="server">
                发布供应信息</div>    
            <div class="tishi">
                <div class="tishi_title">
                    <span id="Htab_on2" onclick="document.getElementById('important_note').style.display=='block'||document.getElementById('important_note').style.display==''?document.getElementById('important_note').style.display='none':document.getElementById('important_note').style.display='block'; document.getElementById('Htab_on2').className=='Htab_on2'?document.getElementById('Htab_on2').className='Htab_off2':document.getElementById('Htab_on2').className='Htab_on2'"
                        style="cursor: hand">重要提醒</span>
                </div>
                <p id="important_note" style="margin: 10px;">
                    为了让买家能更精确找到您的产品，您可以做以下几步提高您的信息精度，获得更好的排名：<br />
                    1、一条信息只发布一个产品； 2、选择与您产品符合的类目。<br />
                    3、发布的信息带图且填写产品属性。<br />
                    4、为了提高信息质量，请您注意不要发布重复信息，重复信息将无法成功发布！
                </p>
                <div class="clr">
                </div>
            </div>
           <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
            <div class="Htitle">
                <div class="h2_title">
                    <div style="float: right; padding: 3px 5px 0;">
                        <span class="red">*</span>为必填项</div>
                    <h2>
                        基本信息</h2>
                </div>
                <a name="flagKeyword"></a>
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="lr_bo">
                    <tr>
                        <td width="16%" class="thing">
                            <strong>产品名称：</strong><span class="red">*</span>
                        </td>
                        <td class="td_c">
                            <span>
                                <asp:TextBox ID="txtName" MaxLength="20" runat="server" Width="200px"></asp:TextBox></span><div
                                    id="txt0">
                                </div>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td class="thing">
                            <strong>产品关键字：</strong><span class="red">*</span>
                        </td>
                        <td class="td_c">
                            <span>
                                <asp:TextBox ID="txtKey" MaxLength="16" runat="server" Width="200px"></asp:TextBox></span>
                            <div id="txt1">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="thing">
                            <strong>产品所属类目：</strong><span class="red">*</span>
                        </td>
                        <td class="td_c">
                            <span>
                                <select id="SortB" name="SortB" runat="server" size="8" style="width: 132px">
                                </select>
                                <select id="SortM" name="SortM" runat="server" size="8" style="width: 132px">
                                </select>
                                <select id="SortS" name="SortS" runat="server" size="8" style="width: 132px">
                                </select>
                            </span>
                            <div id="txt02">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="thing">
                            <strong>所属商铺目录：</strong>
                        </td>
                        <td class="td_c">
                            <span>
                                <asp:DropDownList ID="dropProType" runat="server">
                                </asp:DropDownList>
                            </span><a href="../ProType/ProTypeList.aspx" style="color:Gray">新建目录</a><br/>
                          <pre style="color: Gray">
您发布的供应信息将按照商选择的铺目录展现在商铺上，让买家在浏览您的商铺时，更快捷的浏览商机。</pre>
                        </td>
                    </tr>
                    <tr>
                        <td class="thing">
                            <strong>有效期：</strong>
                        </td>
                        <td class="td_c">
                            <asp:RadioButtonList ID="RadioTime" runat="server" RepeatDirection="Horizontal"
                                RepeatLayout="Flow">
                                <asp:ListItem Value="10">10天</asp:ListItem>
                                <asp:ListItem Value="20">20天</asp:ListItem>
                                <asp:ListItem Value="30">1个月</asp:ListItem>
                                <asp:ListItem Value="90">3个月</asp:ListItem>
                                <asp:ListItem Selected="True" Value="180">6个月</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                </table>
                <div class="h2_title mop">
                    <h2>
                        详细信息</h2>
                </div>
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="lr_bo">
                    <tr>
                        <td width="16%" class="thing">
                            <strong>产 地：</strong>
                        </td>
                        <td class="td_c">
                            <span>
                                <asp:TextBox ID="txtPlace" MaxLength="40" runat="server" Width="200px"></asp:TextBox></span>
                            <div id="txt2">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="thing">
                            <strong>品 牌：</strong>
                        </td>
                        <td class="td_c">
                            <span>
                                <asp:TextBox ID="txtBrand" MaxLength="40" runat="server" Width="200px"></asp:TextBox></span>
                            <div id="txt3">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="thing">
                            <strong>型 号：</strong>
                        </td>
                        <td class="td_c">
                            <span>
                                <asp:TextBox ID="txtModel" MaxLength="40" runat="server" Width="200px"></asp:TextBox></span>
                            <div id="txt4">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="thing">
                            <strong>详细说明：</strong>
                        </td>
                        <td class="td_c">
                            <FCKeditorV2:FCKeditor  ID="txtContent" runat="server" BasePath="/Control/fckeditor/"
                                ToolbarSet="Basic" Height="300" Width="639">
                            </FCKeditorV2:FCKeditor>
                            <br />
                            <pre style="color: Gray"> 1、建议您描述以下方面：产品的性能及优点、用途、售后服务、包装等；<br /> 2、为避免不必要的纠纷，请使用本企业图片；</pre>
                        </td>
                    </tr>
                    <tr>
                        <td class="thing">
                            <strong>产品图片：</strong>
                        </td>
                        <td class="td_c">
                            <asp:HiddenField ID="ImgUrl1" runat="server" />
                            <a href="" id="txturldz" target="_blank">
                                <img src="../../Images/System/wutu1.gif" alt="" name="ImgUrl" width="98" height="98"
                                    border="0" id="ImgUrl" runat="server" /></a><br />
                            <input id="txtupload" type="button" value="上传" onclick="return rowTest()" /><br />
                            <div id="rowTest" style="display: none;">
                                <iframe name="tag" src="../Tool/Upload.html" style="width: 550px; height: 120px"
                                    frameborder="0" scrolling="no" onload="this.height=tag.document.body.scrollHeight">
                                </iframe>
                            </div>
                        </td>
                    </tr>
                </table>
                <a name="flagtiaojian"></a>
                <div class="h2_title mop">
                    <div style="float: right; padding-top: 3px; padding-right: 5px;">
                        建议详细填写交易条件，否则买家无法为您的产品下订单</div>
                    <h2>
                        交易条件</h2>
                </div>
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="lr_bo">
                    <tr>
                        <td width="16%" class="thing">
                            <strong>计量单位：</strong>
                        </td>
                        <td class="td_c">
                            <asp:DropDownList ID="dropUnit" runat="server" onchange="textValue();">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="thing">
                            <strong>产品单价：</strong>
                        </td>
                        <td class="td_c">
                           <div style=" float:left; overflow:hidden; margin-right:20px;"><span>
                                <asp:TextBox ID="txtPrice" MaxLength="7" runat="server" ToolTip="产品单价只能输入数字" Width="75px" Text="1"></asp:TextBox></span><div
                                    id="danwei" runat="server">
                                    元/单位</div></div>
                            <div id="txt5" style="color:Gray;float:left">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="thing">
                            <strong>供货总量：</strong>
                        </td>
                        <td class="td_c">
                        <div style=" float:left; overflow:hidden; margin-right:20px;">
                            <span>
                                <asp:TextBox onkeyup="if(event.keyCode!=37&&event.keyCode!=39)value=value.replace(/\D/g,'');" ID="txtQuantity" MaxLength="7" ToolTip="供货总量只能输入整数,而且小于等于9999999" runat="server" Width="75px"
                                    Text="10"></asp:TextBox>
                            </span>
                            <div id="gonghuo" runat="server">
                                单位
                            </div>
                            </div>
                            <div id="txt6" style="color:Gray; float:left">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="thing">
                            <strong>最小起定量：</strong>
                        </td>
                        <td class="td_c">
                        <div style=" float:left; overflow:hidden; margin-right:20px;">
                            <span>
                                <asp:TextBox onkeyup="if(event.keyCode!=37&&event.keyCode!=39)value=value.replace(/\D/g,'');" MaxLength="7" ID="txtMinimum" ToolTip="最小起定量只能输入数字" runat="server" Width="75px" Text="1"></asp:TextBox></span>
                            <div id="zuixiaoqi" runat="server">
                                单位
                            </div>
                            </div>
                            <div id="txt7" style="color:Gray; float:left">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="thing">
                            <strong>发货期限：</strong>
                        </td>
                        <td class="td_c">
                            <asp:RadioButtonList ID="radlDeadline" runat="server" RepeatDirection="Horizontal"
                                RepeatLayout="Flow">
                                <asp:ListItem Value="1">1天</asp:ListItem>
                                <asp:ListItem Selected="True" Value="3">3天</asp:ListItem>
                                <asp:ListItem Value="5">5天</asp:ListItem>
                                <asp:ListItem  Value="10">10天</asp:ListItem>
                            </asp:RadioButtonList></td>
                    </tr>
                </table>
                <div class="h2_title mop">
                    <div style="float: right; padding-top: 3px; padding-right: 5px;">
                    若有误,您发布的信息将无法通过审核,<a target="_blank" href="../UserInfo/LinkManInfo.aspx" style="color:Red; text-decoration:underline">点此修改</a></div>
                    <h2>联系方式的确认与修改</h2>
                </div>
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="lr_bo">
                    <tr>
                        <td width="16%" class="thing">
                            姓名：</td>
                        <td class="td_c">
                            <asp:Label ID="UserName" runat="server" Text=""></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="thing">
                            电话：</td>
                        <td class="td_c">
                            <asp:Label ID="UserTelephone" runat="server" Text=""></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="thing">
                            QQ：</td>
                        <td class="td_c">
                            <asp:Label ID="UserChuanzhen" runat="server" Text=""></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="thing">
                            公司名称：</td>
                        <td class="td_c">
                            <asp:Label ID="CompanyName" runat="server" Text=""></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="thing">
                            Email：</td>
                        <td class="td_c">
                            <asp:Label ID="Email" runat="server" Text=""></asp:Label></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center" style="height: 45px; border-bottom: 1px #CCCCCC solid;">
                            <asp:Button ID="btnSave" runat="server" Style="cursor: hand" Text="同意服务条款，我要发布" OnClick="btnSave_Click"
                                CssClass="i_button" />
                        </td>
                    </tr>
                </table>
            </div>
        </form>
    </div>

    <script language="javascript" type="text/javascript">
	  setup(1);
    </script>

    <script type="text/javascript" src="../../js/Common.js"></script>

    <script type="text/javascript" src="../js/Supply.js"></script>
</asp:Content>
